<%@ page language="java" import="java.util.*,base.*,pojo.*,service.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>修改个人信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="../bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
    <link rel="stylesheet" type="text/css" href="../jquery/jscal2.css" />
   <link rel="stylesheet" type="text/css" href="../jquery/border-radius.css" />
    <link rel="stylesheet" type="text/css" href="../jquery/steel/steel.css" />
    <style type="text/css">
    .container{
    width:400px;
    }  
    </style>
<script type="text/javascript" src="../jquery/jquery-1.6.1.js"></script>
<script type="text/javascript" src="../jquery/jquery.validate.min.js"></script>
<script src="../jquery/jscal2.js"></script>
    <script src="../jquery/cn.js"></script>

  </head>
  <body>
<%
request.setCharacterEncoding("UTF-8");
int id= (Integer)session.getAttribute("id");
MemberService ms= new MemberService();
MemberInfor mi=ms.getMemberByid(id);
%>
    <div class="container">
    <form class="form-signin" id="form" action="../action/websiteAction/updateInfor.jsp" method="post">
    <input type="hidden" name="id" value="<%=mi.getUserid()%>">
    性别：
<%
if (mi.getSex()==1){ out.println("<label class='radio'><input type=radio name=sex value=1 checked=checked>男</label>");
                       out.println( "<label class='radio'><input type=radio name=sex value=2> 女</label>");
}
else if (mi.getSex()==0) {out.println("<label class='radio'> <input type=radio name=sex value=1> 男</label>");
                       out.println( "<label class='radio'><input type=radio name=sex value=2 checked=checked> 女</label>");
}
else {out.println("<label class='radio'><input type=radio name=sex value=1> 男</label>");
                       out.println( "<label class='radio'><input type=radio name=sex value=2> 女</label>");
}
%>

真实姓名：<input class="input-block-level" type="text" id="realname" name="realname" value="<%=mi.getRealname()%>"  >
身份证号<input class="input-block-level" type="text" id="IDcard" name="IDcard" value="<%=mi.getIDcard() %>" >
手机号码<input class="input-block-level" type="text" id="tel" name="tel" value="<%=mi.getTel()%>"/>*务必填写现有手机号，方便您的订餐</p>
email<input class="input-block-level" type="text" id="email" name="email" value="<%=mi.getEmail() %>" >
生日时间<input class="input-block-level" type="text" id="date" name="birthday" value="<%=mi.getBirthday() %>" >
<script type="text/javascript">
 Calendar.setup({
 inputField : "date",
trigger    : "date",
 onSelect   : function() { this.hide() },
dateFormat : "%Y-%m-%d"
});
 </script>
工作类型<input class="input-block-level" type="text" id="job" name="job" value="<%=mi.getJob() %>" >

<button class="btn btn-large btn-primary" type="submit" id="ok">确认</button>&nbsp;&nbsp;&nbsp;<button class="btn btn-large btn-primary" type="reset">重置</button>
</form>
    <center> <span id="msg" style="color:red;font-size:20px;"></span></center>
    
    </div>
    <script src="../bootstrap/js/bootstrap.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
  </body>
</html>
